﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace firstapp
{
    
    class Program
    {
        static void Main(string[] args)
        {
            List<Knowledge> _list = new List<Knowledge>();
            // Put your stuff here
            Knowledge gyuri = (Knowledge)(new MGyMyKnowledge());
            _list.Add(gyuri);
            TRMyKnowledge k = new TRMyKnowledge();
            _list.Add(k);
            JZ_MyKnowledge zoli = new JZ_MyKnowledge();
            _list.Add(zoli);
            D d = new D();
            _list.Add(d);
            Console.WriteLine(d.Year(2011));
            Console.WriteLine(zoli.age(1989));
            SZD_MyKnowledge valami= new SZD_MyKnowledge();
            _list.Add(valami);
            ///@todo Replace <span style="color: #A10505;">Hung</span> variable names to <b>Eng</b> variable names.
            Y3d7kl y = new Y3d7kl();
            _list.Add(y);
            Console.WriteLine(y.Kora("23"));
            DA_MyKnowledge attila = new DA_MyKnowledge();
            _list.Add(attila);
            //Finish Your stuff here
            for (int i = 0; i < _list.Count ; i++)
            {
                Console.WriteLine("-----------------------------------------");
                _list[i].DoWhatYouCan();
                Console.WriteLine("{0}. DoWhatYouCan függvény meghívódott", i+1);                
            }
            Console.WriteLine(valami.kor("1989"));
            Console.ReadKey();
        }
    }
}
